export default {
	install(Vue) {
		Vue.prototype.$getLocation = (callBack = () => {}, failBack = () => {}) => {
			uni.getLocation({
				type: 'wgs84',
				success: function(res) {
					//保存纬度数据
					//保存经度度数据
					console.log('经纬度获取', res);
					callBack(
						res.longitude, res.latitude
					)
					// console.log('经度' + longitude);
					// console.log('纬度' + latitude);
				},
				fail: function(resp) {
					failBack(resp)
				}
			});
		}
	}
}